//
//  CustomLineView.h
//  HLRecord
//
//  Created by XTW on 2022/11/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol CustomLineDelegate <NSObject>

- (void)lineDidChangeScale:(CGFloat)scale;

@end

@interface CustomLineView : UIView
- (instancetype)initCustomView:(CGRect)frame;
@property (nonatomic, getter=isEnabled) BOOL enabled;
@property (nonatomic, assign) CGFloat minX;
@property (nonatomic, assign) CGFloat maxX;
@property (weak, nonatomic) id<CustomLineDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
